package cn.theten52.demo.patterns.design.behavior.observer.base;

import java.util.Observable;

/**
 * 被观察者
 *
 * @author wangjin
 * @date 2021/4/4
 */
public class LogHistory extends Observable {
    public void sendMessage(String msg) {
        setChanged();
        notifyObservers(msg);
    }
}
